@import '../core/style/variables';
@import '../core/style/layout-common';
@import 'tabs-common';

.mat-tab-header {
  display: flex;
  @include tab-header;
}

// Wraps each tab label
.mat-tab-label {
  @include tab-label;
  position: relative;
}

@media ($mat-xsmall) {
  .mat-tab-label {
    min-width: 72px;
  }
}

// The ink bar that displays under the active tab label
.mat-ink-bar {
  @include ink-bar;
}

.mat-tab-header-pagination {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  cursor: pointer;
  z-index: 2;

  .mat-tab-header-pagination-controls-enabled & {
    display: flex;
  }
}

// The pagination control that is displayed on the left side of the tab header.
.mat-tab-header-pagination-before, .mat-tab-header-rtl .mat-tab-header-pagination-after {
  padding-left: 4px;
  .mat-tab-header-pagination-chevron {
    transform: rotate(-135deg);
  }
}

// The pagination control that is displayed on the right side of the tab header.
.mat-tab-header-rtl .mat-tab-header-pagination-before, .mat-tab-header-pagination-after {
  padding-right: 4px;
  .mat-tab-header-pagination-chevron {
    transform: rotate(45deg);
  }
}

.mat-tab-header-pagination-chevron {
  border-style: solid;
  border-width: 2px 2px 0 0;
  content: '';
  height: 8px;
  width: 8px;
}

.mat-tab-header-pagination-disabled {
  box-shadow: none;
  cursor: default;
}

.mat-tab-label-container {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  z-index: 1;
}

.mat-tab-list {
  flex-grow: 1;
  position: relative;
  transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
}

.mat-tab-labels {
  display: flex;
}
